package com.leetcode.p200;

import com.bean.ListNode;
import com.utils.DataUtils;

public class Test237 {

    public void deleteNode(ListNode node) {
        node.val = node.next.val;
        node.next = node.next.next;
    }

    public static void main(String[] args) {
        ListNode listNode1 = DataUtils.getListNode(new int[]{4, 5, -1, 2, 9, 3, 11, 1});

        Test237 test = new Test237();
//        ListNode list = test.deleteNode(new ListNode("1"));
//        DataUtils.printListNode(list);
    }

}
